<template>
  <div>

    <router-link v-for="(component, index) in prors.list" :key="index" :to="{ path: component.path }">去往xxx
    </router-link>

  </div>


</template>

<script lang="ts" setup>

import { onMounted, defineProps } from 'vue';
import router from '../router/router';

const goA = () => {
  router.push({ path: '/A' })
}
onMounted(() => {
  console.log(router);

})
const prors: any = defineProps({
  list: Array
})

</script>

<style lang="scss" scoped>
</style>